<template>
  <div>
    <v-curveitem :tableData="tableData"></v-curveitem>
  </div>
</template>

<script>
  import moment from 'moment';
  import vCurveitem from './CurveItem.vue';
  export default {
    name:'keepAilve',
      data: function () {
          return {
             tableData: []
          }
      },
      components:{
          vCurveitem
      },
      created: function (){
          this.$$("#content").scrollTop(0)
        let self = this;
        let currentDate = new Date();
        let bizDate = moment(currentDate).format('YYYY-MM-DD');
        let url = '/Income/incomeEntry/desktop?type=deduction&dateType=day&bizDate=' + bizDate;
        console.log(url);

        this.$axioxs({
             method: 'get',
             url: url
          })
        .then(function (res) {
            console.log(JSON.stringify(res.data));
            console.log(res.data);
            self.tableData = res.data.records;
        })
        .catch(function (error) {
          console.log(error)
        });
      }

  }
</script>

<style scoped>
.bought{
  background-color: #fff;
}
.info-back{
  margin-bottom: 10px;
}


</style>
